package com.pactera.madp.cp.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pactera.madp.cp.api.dto.greeting.GreetingDto;
import com.pactera.madp.cp.api.dto.greeting.GreetingPageDTO;
import com.pactera.madp.cp.api.entity.greeting.GreetingEntity;
import com.pactera.madp.cp.api.vo.greeting.GreetingPageVO;


import java.util.List;
import java.util.Map;

public interface IGreetingService extends IService<GreetingEntity> {

    Page<List<GreetingPageVO>>handle(Page page, GreetingPageDTO dto);

    Integer createGreeting(GreetingEntity greetingEntity);

    Integer updateGreetingById(GreetingEntity greetingEntity);

    GreetingEntity getGreetingById(Integer greetingId, String clStr);

    boolean deleteGreeting(Integer greetingId);

    List<GreetingEntity> getGreetingsByCorpId(Integer corpId, String s);

    GreetingPageVO getGreetingById(Integer id);

    Map<String,Object> getGreeting(String userId);

    boolean saveGreeting(GreetingDto greetingDto);

    boolean updateGreeting(GreetingDto greeting);

    void applyWxSendContactMessage(String wxCorpId, String welcomeCode, Map<String, JSONObject> contactInfo, Map<String, Object> content);

}
